package com.ruoyi.active.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.active.mapper.CfActivityImageMapper;
import com.ruoyi.active.domain.CfActivityImage;
import com.ruoyi.active.service.ICfActivityImageService;

/**
 * 活动照片/视频Service业务层处理
 * 
 * @author zhangbiao
 * @date 2024-06-04
 */
@Service
public class CfActivityImageServiceImpl implements ICfActivityImageService 
{
    @Autowired
    private CfActivityImageMapper cfActivityImageMapper;

    /**
     * 查询活动照片/视频
     * 
     * @param id 活动照片/视频主键
     * @return 活动照片/视频
     */
    @Override
    public CfActivityImage selectCfActivityImageById(Long id)
    {
        return cfActivityImageMapper.selectCfActivityImageById(id);
    }

    /**
     * 查询活动照片/视频列表
     * 
     * @param cfActivityImage 活动照片/视频
     * @return 活动照片/视频
     */
    @Override
    public List<CfActivityImage> selectCfActivityImageList(CfActivityImage cfActivityImage)
    {
        return cfActivityImageMapper.selectCfActivityImageList(cfActivityImage);
    }

    /**
     * 新增活动照片/视频
     * 
     * @param cfActivityImage 活动照片/视频
     * @return 结果
     */
    @Override
    public int insertCfActivityImage(CfActivityImage cfActivityImage)
    {
        return cfActivityImageMapper.insertCfActivityImage(cfActivityImage);
    }

    /**
     * 修改活动照片/视频
     * 
     * @param cfActivityImage 活动照片/视频
     * @return 结果
     */
    @Override
    public int updateCfActivityImage(CfActivityImage cfActivityImage)
    {
        return cfActivityImageMapper.updateCfActivityImage(cfActivityImage);
    }

    /**
     * 批量删除活动照片/视频
     * 
     * @param ids 需要删除的活动照片/视频主键
     * @return 结果
     */
    @Override
    public int deleteCfActivityImageByIds(Long[] ids)
    {
        return cfActivityImageMapper.deleteCfActivityImageByIds(ids);
    }

    /**
     * 删除活动照片/视频信息
     * 
     * @param id 活动照片/视频主键
     * @return 结果
     */
    @Override
    public int deleteCfActivityImageById(Long id)
    {
        return cfActivityImageMapper.deleteCfActivityImageById(id);
    }
}
